package com.biz.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.biz.TCompetenceBIZ;
import com.dao.TCompetenceDAO;
import com.entity.TCompetence;
@SuppressWarnings("rawtypes")
@Service
@Transactional
public class TCompetenceBIZImpl implements TCompetenceBIZ {
	
	private TCompetenceDAO tCompetenceDAO;
	
	@Resource
	public void settCompetenceDAO(TCompetenceDAO tCompetenceDAO) {
		this.tCompetenceDAO = tCompetenceDAO;
	}

	public void save(TCompetence transientInstance) {
		this.tCompetenceDAO.save(transientInstance);
	}

	public void delete(TCompetence persistentInstance) {
		
		this.tCompetenceDAO.delete(persistentInstance);
	}

	public TCompetence findById(String id) {
		
		return this.tCompetenceDAO.findById(id);
	}

	public List findByExample(TCompetence instance) {
		
		return this.tCompetenceDAO.findByExample(instance);
	}

	public List findByProperty(String propertyName, Object value) {
		
		return this.tCompetenceDAO.findByProperty(propertyName, value);
	}

	public List findByUtypeId(Object utypeId) {
		
		return this.tCompetenceDAO.findByUtypeId(utypeId);
	}

	public List findByMenutreeId(Object menutreeId) {
		
		return this.tCompetenceDAO.findByMenutreeId(menutreeId);
	}

	public List findBySort(Object sort) {
		
		return this.tCompetenceDAO.findBySort(sort);
	}

	public List findByIsShow(Object isShow) {
		
		return this.tCompetenceDAO.findByIsShow(isShow);
	}

	public List findByState(Object state) {
		
		return this.tCompetenceDAO.findByState(state);
	}

	public List findByRemark(Object remark) {
		
		return this.tCompetenceDAO.findByRemark(remark);
	}

	public List findAll() {
		
		return this.tCompetenceDAO.findAll();
	}

	public TCompetence merge(TCompetence detachedInstance) {
		
		return this.tCompetenceDAO.merge(detachedInstance);
	}

	public void attachDirty(TCompetence instance) {
		this.tCompetenceDAO.attachDirty(instance);

	}

	public void attachClean(TCompetence instance) {
		this.tCompetenceDAO.attachClean(instance);

	}

	public List findByParentId(Object parentId) {
		
		return this.tCompetenceDAO.findByParentId(parentId);
	}

}
